json = {
    "status": 1,
    "msg": "",
    "title": "JSON请求的相册",
    "id": 8,
    "start": 0,
    "data": [
        {
        "alt": "layer",
        "pid": 109,
        "src": "https://layer.layui.com/../images/tong.jpg",
        "thumb": ""
        },
        {
        "alt": "说好的，一起Fly",
        "pid": 110,
        "src": "https://layer.layui.com/../images/tong.jpg",
        "thumb": ""
        },
        {
        "alt": "佟丽娅女神",
        "pid": 111,
        "src": "https://layer.layui.com/../images/tong.jpg",
        "thumb": ""
        },
        {
        "alt": "凤姐是个好人",
        "pid": 112,
        "src": "https://layer.layui.com/../images/tong.jpg",
        "thumb": ""
        },
        {
        "alt": "星空如此深邃",
        "pid": 113,
        "src": "https://layer.layui.com/../images/tong.jpg",
        "thumb": ""
        }
    ]
    };
    layer.photos({
        photos: json //格式见API文档手册页
        ,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机
    });